//
//  HROrderInfoViewController.h
//  haierapp
//
//  Created by Xia Zhiyong on 14-8-14.
//  Copyright (c) 2014年 haier. All rights reserved.
//

#import <UIKit/UIKit.h>


//订单确认类型
typedef enum{
    ORDER_CONFIRM_TYPE_SHOPCAR,//购物车生成订单
    ORDER_CONFIRM_TYPE_DIRECTBUY,    //直接生成订单
    ORDER_CONFIRM_TYPE_ACTIVITY     //活动订单
} ORDER_CONFIRM_TYPE;

@interface HROrderInfoViewController : HRBaseViewController<UITableViewDataSource,UITableViewDelegate,UIActionSheetDelegate>

@property (strong, nonatomic) IBOutlet UIView *viewHasAddress;
@property (strong, nonatomic) IBOutlet UILabel *lblBuyer;
@property (strong, nonatomic) IBOutlet UILabel *lblAddress;
@property (strong, nonatomic) IBOutlet UIView *viewNoAddress;

@property (strong, nonatomic) IBOutlet UILabel *lblTotalPrice;
@property (strong, nonatomic) IBOutlet UITableView *tableView;
@property (strong, nonatomic) IBOutlet UIView *tableHeader;

@property (strong, nonatomic) NSMutableArray *arrayGoods;   //从购物车生成订单
@property(strong,nonatomic) NSString *productId;    //直接购买生成订单
@property(strong,nonatomic) NSArray *productParam;  //直接购买订单的参数

@property(nonatomic,assign) ORDER_CONFIRM_TYPE type;//订单确认页面类型

@property(nonatomic,strong) NSString *activityId;   //活动Id
@property(nonatomic,assign) ACTIVITY_TYPE activityType;//活动类型
@property(nonatomic,strong) NSString *prePayment;   //预付款
@property(nonatomic,strong) NSString *lastPayment;  //尾款
@property(nonatomic,strong) NSString *totalPrice;   //活动商品金额


- (IBAction)actionChooseBuyer:(id)sender;
- (IBAction)actionSure:(id)sender;
@end
